﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace OneShoppingUtility
{
    public class UtilityDataCheck
    {
        public static bool IsDate(string date)
        {
            try { Convert.ToDateTime(date); return true; }
            catch { return false; }
        }

        public static bool IsInteger(string s)
        {
            try { Convert.ToInt32(s); return true; }
            catch { return false; }
        }
    }
}
